import request from '@/utils/request' // api: https://github.com/axios/axios

// 分配角色
export function insert(params) {
    return request({
        url: 'sys/user-role/insert',
        method: 'post',
        data:params
    })
}
// 修改
export function list(params) {
    return request({
        url: 'sys/user-role/list',
        method: 'post',
        data:params
    })
}
// 获取所有角色信息
export function Allrole(params) {
    return request({
        url: 'sys/role/list',
        method: 'post',
        data:params
    })
}